package com.modules.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.common.entity.BaseNotOidEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 数字字典
 *
 * @author yyq
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper=false)
@TableName("sys_dict")
public class DictEntity extends BaseNotOidEntity {

	private static final long serialVersionUID = 1L;

	/** 字典ID*/
	@TableId(type=IdType.AUTO)
	private Integer id;
	
	/** 字典名称*/
	@NotEmpty(message = "名称不能为空")
    private String dictName; 	
    
	/** 字典编码*/
	@NotEmpty(message = "编码不能为空")
    private String dictCode; 
    
    /** 字典类型：1单选框2复选框3下拉框*/
	@NotNull(message = "字典类型不能为空")
    private Integer dictType;   

    
}
